package world.ztomorrow.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import world.ztomorrow.common.dto.RestResp;
import world.ztomorrow.user.dto.req.UserCommentReqDto;

@FeignClient("yc-novel")
@RestController
public interface NovelClient {

    @PostMapping("/comment")
    RestResp<Void> saveComment(@RequestBody UserCommentReqDto dto) ;

    @PutMapping("/comment/{id}")
    RestResp<Void> updateComment(@PathVariable Long id,
                                        @RequestBody String content);

    @DeleteMapping("/comment/{id}")
    RestResp<Void> deleteComment(@PathVariable Long id);
}
